<script type="text/javascript" src="<!--{$T.js}!-->common.js"></script>
<script type="text/javascript" src="./APP/view/global/editarea/edit_area/edit_area_full.js"></script>
<script language="Javascript" type="text/javascript">
  function waitStop(){
	  alert(123);
	  $("#BgDiv").css("dispaly","none");
	  $("#wait").css("dispaly","none")
  }
  $(function(){
	//waitStop();
//	setTimeout("waitStop()",5000);
//	ShowDIV("wait");	
	$("#addcss").click(function(){
		$(".CSS").slideToggle();
	});
	$("#addjs").click(function(){
		$(".JS").slideToggle();
	});
	$("#terminal").change(function(){
		var terminalid = $("#terminal").val();
		document.location = "?m=Admin/Block/EditTemplate&groupid=<!--{$T.groupid}!-->&terminalid="+terminalid;
	});
	$("#terminal").val(<!--{$T.block.terminalid}!-->);
  })
  editAreaLoader.init({
			id: "HTML"	// id of the textarea to transform	
			,start_highlight: true
			,allow_toggle: false
			,font_family: "verdana, monospace"
			,language: "zh"
			,syntax: "html"	
			,toolbar: "search, go_to_line, |, undo, redo, |, select_font, |, syntax_selection, |, change_smooth_selection, highlight, reset_highlight"
			,syntax_selection_allow: "html"
			,is_multi_files: false
			,EA_load_callback: "editAreaLoaded"
			,show_line_colors: true
		});
  editAreaLoader.init({
			id: "CSS"	// id of the textarea to transform	
			,start_highlight: true
			,allow_toggle: false
			,font_family: "verdana, monospace"
			,language: "zh"
			,syntax: "css"	
			,toolbar: "search, go_to_line, |, undo, redo, |, select_font, |, syntax_selection, |, change_smooth_selection, highlight, reset_highlight"
			,syntax_selection_allow: "css"
			,is_multi_files: false
			,EA_load_callback: "editAreaLoaded"
			,show_line_colors: true
		});
  editAreaLoader.init({
			id: "JS"	// id of the textarea to transform	
			,start_highlight: true
			,allow_toggle: false
			,font_family: "verdana, monospace"
			,language: "zh"
			,syntax: "js"	
			,toolbar: "search, go_to_line, |, undo, redo, |, select_font, |, syntax_selection, |, change_smooth_selection, highlight, reset_highlight"
			,syntax_selection_allow: "js"
			,is_multi_files: false
			,EA_load_callback: "editAreaLoaded"
			,show_line_colors: true
		});
 
</script>

<body>
<style type="text/css">
body {
	background:#FFF;
}
.pageColumn table tr td{text-align:center;}
.pageColumn table tbody tr td{text-align:left; padding-left:10px;}
.add{color:#F00; font-weight:800;}
.add:hover{font-size:14px;}
#wait{position:fixed; width:400px; left:50%; top:50%; margin-left:-200px; height:auto; z-index:100; padding:1px; display:none; text-align:center;}
</style>
<div id="BgDiv"></div>
<div id="contentWrap">
<div class="pageTitle"></div>
<div class="pageColumn">
 <!--{include file="App/view/Admin/Block/_nav.html"}!-->  
 <br>
 <form action="?m=Admin/Block/UpdateTemplate" method="post">
  <!--{include file="APP/view/Admin/Block/_templateForm.html"}!--> 
  <input type="hidden" name="blockid" value="<!--{$T.block.blockid}!-->"/>
  <input type="hidden" name="templateid" value="<!--{$T.block.templateid}!-->"/>
  <input type="hidden" name="type" value="<!--{$T.type}!-->"/>
  <input type="submit" name="sub" value="更新"/>
 </form>
</div></div>
<div id="wait">
  <img src="<!--{$T.image}!-->wait.gif" width="128" height="128"/>
</div>
</body>
</html>
